/* ==========================================
   Punishments Module - Death Game Style
   ========================================== */

.punishments-page {
    margin-top: 20px;
    max-width: 100%;
    font-family: inherit;
}

/* Alerts */
.pn-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 2.5px;
    margin-bottom: 12px;
    background: #fff;
    border-left: 4px solid;
}

.pn-alert-warning {
    border-color: #b58504;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.pn-alert-danger {
    border-color: #8a0202;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.pn-alert-icon {
    flex-shrink: 0;
}

.pn-alert-warning .pn-alert-icon { color: #b58504; }
.pn-alert-danger .pn-alert-icon { color: #8a0202; }

.pn-alert-content {
    flex: 1;
}

.pn-alert-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.pn-alert-text {
    font-size: 13px;
    color: #666;
}

/* Header */
.pn-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.pn-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: #333;
}

.pn-subtitle {
    font-size: 13px;
    color: #969696;
    margin: 0;
}

.pn-header-stats {
    display: flex;
    gap: 12px;
}

.pn-stat {
    text-align: center;
    padding: 8px 16px;
    background: #fff;
    border-radius: 2.5px;
    box-shadow: 0px 0px 2px #dadbde;
}

.pn-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.pn-stat-active .pn-stat-value { color: #8a0202; }
.pn-stat-expired .pn-stat-value { color: #097102; }

.pn-stat-label {
    display: block;
    font-size: 11px;
    color: #969696;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Buttons */
.pn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 2.5px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.pn-btn:hover:not(:disabled) {
    opacity: 0.9;
    text-decoration: none;
}

.pn-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pn-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.pn-btn-primary {
    background-image: linear-gradient(to bottom, #2986c3, #0477bc);
    color: #fff;
}

.pn-btn-secondary {
    background: #e2e8f0;
    color: #333;
}

.pn-btn-success {
    background: #097102;
    color: #fff;
}

.pn-btn-danger {
    background: #8a0202;
    color: #fff;
}

.pn-btn-warning {
    background: #b58504;
    color: #fff;
}

/* Search & Filters */
.pn-filters {
    background: #fff;
    border-radius: 2.5px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0px 0px 2px #dadbde;
}

.pn-filters-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.pn-server-filter {
    flex-shrink: 0;
}

.pn-server-select {
    height: unset;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 2.5px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    outline: none;
    min-width: 150px;
    transition: border-color 0.2s;
}

.pn-server-select:hover,
.pn-server-select:focus {
    border-color: #2785c8;
}

.pn-search-box {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.pn-search-input-wrapper {
    height: 32px;
    flex: 1;
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 2.5px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pn-search-input-wrapper:focus-within {
    border-color: #2785c8;
    box-shadow: 0 0 6px rgb(80 117 221 / 60%);
}

.pn-search-icon {
    margin-left: 10px;
    color: #969696;
    flex-shrink: 0;
}

.pn-search-input {
    flex: 1;
    border: none !important;
    background: transparent;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    min-width: 0;
    box-shadow: unset !important;;
}

/* Type Checkboxes */
.pn-type-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pn-type-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}

.pn-type-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #2785c8;
}

.pn-type-label {
    font-size: 13px;
    font-weight: 500;
}

.pn-type-ban {
    color: #8a0202;
}

.pn-type-kick {
    color: #b58504;
}

.pn-type-mute {
    color: #666;
}

.pn-type-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pn-type-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

/* Filters Bottom Row */
.pn-filters-bottom {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.pn-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f1f1;
    border-radius: 2.5px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
    user-select: none;
}

.pn-filters-toggle:hover {
    background: #e5e5e5;
    color: #333;
}

.pn-filters-toggle.active {
    background: #2785c8;
    color: #fff;
}

.pn-filters-count {
    background: #8a0202;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.pn-filters-panel {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d8d8d8;
}

.pn-filters-panel.active {
    display: grid;
}

.pn-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pn-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #969696;
    text-transform: uppercase;
}

.pn-filter-select {
    width: unset;
    height: unset;
    padding: 6px 8px;
    border: 1px solid #d8d8d8;
    border-radius: 2.5px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.pn-filter-select:focus {
    border-color: #2785c8;
}

/* Date Range Filter */
.pn-date-range {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pn-filter-date {
    flex: 1;
    min-width: 115px;
    padding: 5px 6px;
    border: 1px solid #d8d8d8;
    border-radius: 2.5px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
    outline: none;
    min-width: 0;
}

.pn-filter-date:focus {
    border-color: #2785c8;
}

.pn-date-separator {
    color: #969696;
    font-size: 11px;
    flex-shrink: 0;
    line-height: 1;
}

@media (max-width: 200px) {
    .pn-date-separator {
        display: none;
    }
}

.pn-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

/* Main Layout */
.pn-main-section {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.pn-list-wrapper {
    flex: 1;
    min-width: 0;
}

/* List Loader */
.pn-list-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    background: #fff;
    border-radius: 2.5px;
}

.pn-list-loader.hidden,
.pn-list.hidden {
    display: none;
}

.pn-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #d8d8d8;
    border-top-color: #2785c8;
    border-radius: 50%;
    animation: pn-spin 0.8s linear infinite;
}

@keyframes pn-spin {
    to { transform: rotate(360deg); }
}

/* List Header */
.pn-list-header {
    display: flex;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pn-lh-time { width: 54px; flex-shrink: 0; }
.pn-lh-player { flex-basis: calc(32% - 40px); padding-left: 4px; padding-right: 40px; }
.pn-lh-reason { flex-basis: 29%; }
.pn-lh-admin { flex-basis: 29%; }
.pn-lh-length { flex-basis: 10%; }

/* Date Separator */
.pn-date-separator {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    margin-top: 20px;
}

.pn-date-separator:first-child {
    margin-top: 0;
}

.pn-date-badge {
    background: #104163;
    color: #fff;
    padding: 0px 14px;
    border-radius: 2.5px;
    font-size: 14px;
    font-weight: 500;
    line-height: 23px;
}

/* Ban List */
.pn-list {
    min-height: 200px;
}

/* Ban Item */
.pn-ban-item {
    display: flex;
    margin-bottom: 4px;
    cursor: pointer;
}

.pn-ban-item .pn-ban-time {
    line-height: 42px;
    font-size: 14px;
    margin-right: 12px;
    width: 42px;
    flex-shrink: 0;
    color: #333;
}

.pn-ban-item .pn-main-block {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 2.5px;
    padding: 6px 8px;
    background: #fff;
    transition: background-color 0.2s;
    gap: 10px;
    justify-content: space-between;
}

.pn-ban-item .pn-main-block:hover {
    background-color: #d4dde4;
}

.pn-ban-item.active .pn-main-block {
    background-color: #d4dde4;
    box-shadow: inset 3px 0 0 #2785c8;
}

.pn-ban-item.expired {
    opacity: 0.7;
}

/* Unbanned states */
.pn-ban-item.unbanned-admin .pn-main-block {
    background: #097102;
}

.pn-ban-item.unbanned-admin .pn-main-block .pn-cover {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: radial-gradient(circle, rgb(7 162 27 / 91%) 30%, rgb(41 185 45 / 53%) 71%, rgb(0 255 8 / 6%) 100%);
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,.5);
    border-radius: 2.5px;
}

.pn-ban-item.unbanned-paid .pn-main-block {
    background: #b58504;
}

.pn-ban-item.unbanned-paid .pn-main-block .pn-cover {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: radial-gradient(circle, rgb(189 139 24 / 91%) 30%, rgb(213 168 31 / 53%) 71%, rgb(255 192 0 / 6%) 100%);
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,.5);
    border-radius: 2.5px;
}

/* Ban Item Columns */
.pn-ban-player {
    flex-basis: calc(32% - 40px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.pn-player-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2.5px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.pn-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pn-player-avatar-placeholder {
    font-weight: 600;
    color: #969696;
    font-size: 12px;
}

.pn-player-name {
    font-weight: 500;
    font-size: 14px;
    max-width: 182px;
    overflow: hidden;
    word-break: break-all;
    text-overflow: ellipsis;
}

.pn-ban-reason {
    flex-basis: 29%;
    font-size: 13px;
    color: #666;
    max-width: 182px;
    overflow: hidden;
    word-break: break-all;
    text-overflow: ellipsis;
    padding-right: 10px;
    box-sizing: border-box;
}

.pn-ban-admin {
    flex-basis: 29%;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    padding-right: 10px;
    box-sizing: border-box;
}

.pn-admin-icon {
    color: #2785c8;
    width: 16px;
    height: 16px;
}

.pn-ban-length {
    flex-basis: 10%;
    font-size: 13px;
    font-weight: 500;
}

/* Sidebar (Info Panel) - Desktop */
.pn-info-wrapper {
    width: 350px;
    flex-shrink: 0;
    margin-top: 54px;
}

.pn-sidebar {
    position: sticky;
    top: 64px;
    width: 350px;
    box-sizing: border-box;
    background-color: #d4dde4;
    border-radius: 2.5px;
    display: none;
}

.pn-sidebar.active {
    display: block;
}

.pn-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #2785c8;
    border-radius: 2.5px 2.5px 0 0;
}

.pn-sidebar-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.pn-sidebar-close {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #fff;
    border-radius: 2px;
    transition: opacity 0.2s;
    display: flex;
}

.pn-sidebar-close:hover {
    opacity: 0.8;
}

.pn-sidebar-content {
    padding: 12px;
}

/* Sidebar Info Rows */
.pn-info-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.pn-info-label {
    width: 110px;
    flex-shrink: 0;
    font-weight: 500;
    color: #333;
}

.pn-info-value {
    flex: 1;
    color: #555;
    word-break: break-all;
}

.pn-info-value a {
    color: #2785c8;
    text-decoration: none;
}

.pn-info-value a:hover {
    text-decoration: underline;
}

.pn-info-highlight {
    color: #8a0202;
    font-weight: 500;
}

/* History Items */
.pn-history-item {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 6px 8px;
    margin-bottom: 4px;
    background: #c5cdd4;
    border-radius: 2.5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.pn-history-item:hover {
    background: #b8c2cb;
}

.pn-history-item:last-of-type {
    margin-bottom: 0;
}

.pn-history-date {
    color: #555;
    flex-shrink: 0;
}

.pn-history-reason {
    flex: 1;
    color: #333;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pn-history-length {
    color: #666;
    flex-shrink: 0;
    font-weight: 500;
}

/* Time Remaining */
.pn-time-remaining {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 8px 12px;
    border-radius: 2.5px;
    margin-bottom: 12px;
    font-size: 13px;
}

.pn-time-remaining strong {
    color: #92400e;
}

/* Sidebar Sections */
.pn-sidebar-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #c5cdd4;
}

.pn-sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pn-history-show-all {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px 10px;
    background: linear-gradient(0deg, #2177b8, #2785c8);
    color: #fff;
    border: none;
    border-radius: 2.5px;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.pn-history-show-all:hover {
    background: linear-gradient(0deg, #1a6199, #2177b8);
}

/* Sidebar Actions */
.pn-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #c5cdd4;
}

.pn-sidebar-actions .pn-btn {
    width: 100%;
    justify-content: center;
}

/* Empty State */
.pn-empty {
    padding: 40px 20px;
    text-align: center;
    color: #969696;
    background: #fff;
    border-radius: 2.5px;
}

.pn-empty svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.pn-empty p {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 6px 0;
    color: #333;
}

.pn-empty span {
    font-size: 13px;
}

/* Pagination */
.pn-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pn-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d8d8d8;
    background: #fff;
    border-radius: 2.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.pn-page-btn:hover:not(:disabled) {
    background: #2785c8;
    border-color: #2785c8;
    color: #fff;
}

.pn-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pn-page-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.pn-page-input {
    width: 50px;
    padding: 6px 8px;
    border: 1px solid #d8d8d8;
    border-radius: 2.5px;
    text-align: center;
    font-size: 13px;
    outline: none;
}

.pn-page-input:focus {
    border-color: #2785c8;
}

.pn-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.pn-page-size-select {
    padding: 6px 8px;
    border: 1px solid #d8d8d8;
    border-radius: 2.5px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

/* Modal */
.pn-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pn-modal.active {
    display: flex;
}

.pn-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.pn-modal-container {
    position: relative;
    background: #fff;
    border-radius: 2.5px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.pn-modal-sm {
    max-width: 400px;
}

.pn-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #d8d8d8;
    background: #2785c8;
    border-radius: 2.5px 2.5px 0 0;
}

.pn-modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.pn-modal-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #fff;
    border-radius: 2px;
    transition: opacity 0.2s;
    display: flex;
}

.pn-modal-close:hover {
    opacity: 0.8;
}

.pn-modal-body {
    padding: 16px;
    overflow-y: auto;
}

.pn-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #d8d8d8;
}

.pn-modal-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Form */
.pn-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pn-form-group {
    margin-bottom: 12px;
}

.pn-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.pn-form-input,
.pn-form-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d8d8d8;
    border-radius: 2.5px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.pn-form-input:focus,
.pn-form-select:focus {
    border-color: #2785c8;
}

/* Comments */
.pn-comments-list {
    max-height: 200px;
    overflow-y: auto;
}

.pn-comment {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #c5cdd4;
}

.pn-comment:last-child {
    border-bottom: none;
}

.pn-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pn-comment-content {
    flex: 1;
    min-width: 0;
}

.pn-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.pn-comment-author {
    font-weight: 500;
    font-size: 13px;
    color: #2785c8;
    text-decoration: none;
}

.pn-comment-author:hover {
    text-decoration: underline;
}

.pn-comment-date {
    font-size: 11px;
    color: #969696;
}

.pn-comment-text {
    font-size: 13px;
    color: #333;
    word-break: break-word;
}

.pn-comment-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #c5cdd4;
    border-radius: 2.5px;
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
    outline: none;
    box-sizing: border-box;
}

.pn-comment-input:focus {
    border-color: #2785c8;
}

/* Toast Notifications */
.pn-toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pn-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 2.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 400px;
    animation: pn-toast-in 0.3s ease;
    border-left: 4px solid #2785c8;
}

@keyframes pn-toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pn-toast-success { border-left-color: #097102; }
.pn-toast-error { border-left-color: #8a0202; }
.pn-toast-info { border-left-color: #2785c8; }

.pn-toast-icon {
    flex-shrink: 0;
}

.pn-toast-success .pn-toast-icon { color: #097102; }
.pn-toast-error .pn-toast-icon { color: #8a0202; }
.pn-toast-info .pn-toast-icon { color: #2785c8; }

.pn-toast-message {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.pn-toast-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #969696;
    display: flex;
}

.pn-toast-close:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 900px) {
    .pn-main-section {
        flex-direction: column;
    }
    
    .pn-info-wrapper {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        margin-top: 0;
    }
    
    .pn-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: 2.5px 2.5px 0 0;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    }
    
    .pn-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99;
    }
    
    .pn-sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .pn-list-header {
        display: none;
    }
    
    .pn-ban-item {
        flex-wrap: wrap;
    }
    
    .pn-ban-item .pn-ban-time {
        width: auto;
        margin-right: 8px;
    }
    
    .pn-ban-item .pn-main-block {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pn-ban-player {
        flex-basis: 100%;
    }
    
    .pn-ban-reason {
        flex-basis: 100%;
        max-width: none;
    }
    
    .pn-ban-admin {
        flex-basis: auto;
    }
    
    .pn-ban-length {
        flex-basis: auto;
        margin-left: auto;
    }
    
    .pn-header {
        flex-direction: column;
    }
    
    .pn-header-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .pn-stat {
        flex: 1;
        padding: 6px 10px;
    }
}
